<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>AmpleHarvest: cMarkings.php Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">AmpleHarvest
   &#160;<span id="projectnumber">0.0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('c_markings_8php.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">cMarkings.php</div>  </div>
</div>
<div class="contents">
<a href="c_markings_8php.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00002"></a>00002 
<a name="l00019"></a><a class="code" href="classc_markings.html">00019</a>         <span class="keyword">class </span><a class="code" href="classc_markings.html" title="This class controls the whole Classification Object.">cMarkings</a>
<a name="l00020"></a>00020         {
<a name="l00021"></a><a class="code" href="classc_markings.html#a9bed69c7d5b7130dcd74ab1184b2f364">00021</a>                 <span class="keyword">const</span> <a class="code" href="classc_markings.html#a9bed69c7d5b7130dcd74ab1184b2f364">C_STR_UNCLASSIFIED</a> = <span class="stringliteral">&#39;UNCLASSIFIED&#39;</span>;
<a name="l00022"></a>00022                 
<a name="l00023"></a><a class="code" href="classc_markings.html#a13a8b390052bba52e8eeb58f527cb3a0">00023</a>                 <span class="keyword">private</span> <a class="code" href="classc_markings.html#a13a8b390052bba52e8eeb58f527cb3a0">$m_str_Classification</a> = <span class="stringliteral">&#39;&#39;</span>;
<a name="l00024"></a><a class="code" href="classc_markings.html#a35b813d2018fa8843ff69e4c0daef52d">00024</a>                 <span class="keyword">private</span> <a class="code" href="classc_markings.html#a35b813d2018fa8843ff69e4c0daef52d">$m_arr_SCI</a> = null;
<a name="l00025"></a><a class="code" href="classc_markings.html#a181937b1c5cf7f55a1b6615eb031c92f">00025</a>                 <span class="keyword">private</span> <a class="code" href="classc_markings.html#a181937b1c5cf7f55a1b6615eb031c92f">$m_arr_Distro</a> = null;
<a name="l00026"></a><a class="code" href="classc_markings.html#ab09f2ab213268a42220dd686a02ee8eb">00026</a>                 <span class="keyword">private</span> <a class="code" href="classc_markings.html#ab09f2ab213268a42220dd686a02ee8eb">$m_bool_isDynamic</a> = <span class="keyword">true</span>;
<a name="l00027"></a><a class="code" href="classc_markings.html#a93b517f1655acf7394d0d4e3bfd776ed">00027</a>                 <span class="keyword">private</span> <a class="code" href="classc_markings.html#a93b517f1655acf7394d0d4e3bfd776ed">$m_arr_Steward</a> = null;
<a name="l00028"></a><a class="code" href="classc_markings.html#ae5c5b3a693319393ce4d8445a89ce2f4">00028</a>                 <span class="keyword">private</span> <a class="code" href="classc_markings.html#ae5c5b3a693319393ce4d8445a89ce2f4">$m_arr_Publisher</a> = null;
<a name="l00029"></a><a class="code" href="classc_markings.html#a2666c39cc69a3776610d6af0e6e8cd60">00029</a>                 <span class="keyword">private</span> <a class="code" href="classc_markings.html#a2666c39cc69a3776610d6af0e6e8cd60">$m_arr_LastModified</a> = null;
<a name="l00030"></a><a class="code" href="classc_markings.html#add5f1826c0f2097d98588e06ac95cf78">00030</a>                 <span class="keyword">private</span> <a class="code" href="classc_markings.html#add5f1826c0f2097d98588e06ac95cf78">$m_arr_LastReviewed</a> = null;
<a name="l00031"></a>00031                 
<a name="l00032"></a>00032                 
<a name="l00033"></a>00033 
<a name="l00034"></a><a class="code" href="classc_markings.html#aebcc9d369f3c1cbce77597b10ac6c6da">00034</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_markings.html#aebcc9d369f3c1cbce77597b10ac6c6da">__construct</a>($str_Classification = null, $str_SCI = null, $str_Distro = null, $bool_Dynamic = <span class="keyword">false</span>)
<a name="l00035"></a>00035                 {
<a name="l00036"></a>00036                         $this-&gt;m_arr_Distro = array();
<a name="l00037"></a>00037                         $this-&gt;m_arr_SCI = array();
<a name="l00038"></a>00038                         
<a name="l00039"></a>00039                         $this-&gt;<a class="code" href="classc_markings.html#a3c3934854ecd5c496f8de7a6f5680c48">set_Dynamic</a>($bool_Dynamic);
<a name="l00040"></a>00040 
<a name="l00041"></a>00041                         <span class="keywordflow">if</span> ($str_Classification)
<a name="l00042"></a>00042                         {
<a name="l00043"></a>00043                                 $this-&gt;<a class="code" href="classc_markings.html#a42ba3db36d1032cb1416e9a9b810a95e">set_Classification</a>($str_Classification);
<a name="l00044"></a>00044                         }
<a name="l00045"></a>00045 
<a name="l00046"></a>00046                         <span class="keywordflow">if</span> ($str_SCI)
<a name="l00047"></a>00047                         {
<a name="l00048"></a>00048                                 $this-&gt;<a class="code" href="classc_markings.html#a7ef68cd67608b63dffc004b381df1937">set_SCI</a>($str_SCI);
<a name="l00049"></a>00049                         }
<a name="l00050"></a>00050 
<a name="l00051"></a>00051                         <span class="keywordflow">if</span> ($str_Distro)
<a name="l00052"></a>00052                         {
<a name="l00053"></a>00053                                 $this-&gt;<a class="code" href="classc_markings.html#a5c123b2ce46499414befef05b7303c22">set_Distro</a>($str_Distro);
<a name="l00054"></a>00054                         }
<a name="l00055"></a>00055 
<a name="l00056"></a>00056                 }
<a name="l00057"></a>00057                 
<a name="l00058"></a><a class="code" href="classc_markings.html#a3c3934854ecd5c496f8de7a6f5680c48">00058</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_markings.html#a3c3934854ecd5c496f8de7a6f5680c48">set_Dynamic</a>($bool_Dynamic=<span class="keyword">true</span>)
<a name="l00059"></a>00059                 {
<a name="l00060"></a>00060                         $this-&gt;m_bool_isDynamic = $bool_Dynamic;
<a name="l00061"></a>00061                 }
<a name="l00062"></a>00062 
<a name="l00063"></a><a class="code" href="classc_markings.html#a7ef68cd67608b63dffc004b381df1937">00063</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_markings.html#a7ef68cd67608b63dffc004b381df1937">set_SCI</a>($mix_SCI)
<a name="l00064"></a>00064                 {
<a name="l00065"></a>00065                         <span class="keywordflow">if</span> (!is_array($mix_SCI))
<a name="l00066"></a>00066                         {
<a name="l00067"></a>00067                                 $mix_SCI = Array($mix_SCI);
<a name="l00068"></a>00068                         }
<a name="l00069"></a>00069                         $this-&gt;<a class="code" href="classc_markings.html#a8de6b04504db613360c4c3499a48b478">clear_SCI</a>();
<a name="l00070"></a>00070                         <span class="keywordflow">foreach</span> ($mix_SCI as $str_SCI)
<a name="l00071"></a>00071                         {
<a name="l00072"></a>00072                                 $this-&gt;<a class="code" href="classc_markings.html#a580e78d6e5d9b6995cb3b36929493603">add_SCI</a>($str_SCI);
<a name="l00073"></a>00073                         }
<a name="l00074"></a>00074                 }
<a name="l00075"></a>00075 
<a name="l00076"></a><a class="code" href="classc_markings.html#a42ba3db36d1032cb1416e9a9b810a95e">00076</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_markings.html#a42ba3db36d1032cb1416e9a9b810a95e">set_Classification</a>($str_Classification)
<a name="l00077"></a>00077                 {
<a name="l00078"></a>00078                         $this-&gt;m_str_Classification = strtoupper($str_Classification);
<a name="l00079"></a>00079                 }
<a name="l00080"></a>00080 
<a name="l00081"></a><a class="code" href="classc_markings.html#a8de6b04504db613360c4c3499a48b478">00081</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_markings.html#a8de6b04504db613360c4c3499a48b478">clear_SCI</a>()
<a name="l00082"></a>00082                 {
<a name="l00083"></a>00083 
<a name="l00084"></a>00084                         $this-&gt;m_arr_SCI = array();
<a name="l00085"></a>00085                 }
<a name="l00086"></a>00086 
<a name="l00087"></a><a class="code" href="classc_markings.html#a580e78d6e5d9b6995cb3b36929493603">00087</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_markings.html#a580e78d6e5d9b6995cb3b36929493603">add_SCI</a>($str_SCI)
<a name="l00088"></a>00088                 {
<a name="l00089"></a>00089 
<a name="l00090"></a>00090                         $this-&gt;m_arr_SCI[] = strtoupper($str_SCI);
<a name="l00091"></a>00091                 }
<a name="l00092"></a>00092 
<a name="l00093"></a><a class="code" href="classc_markings.html#a5c123b2ce46499414befef05b7303c22">00093</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_markings.html#a5c123b2ce46499414befef05b7303c22">set_Distro</a>($mix_Distro)
<a name="l00094"></a>00094                 {
<a name="l00095"></a>00095                         <span class="keywordflow">if</span> (!is_array($mix_Distro))
<a name="l00096"></a>00096                         {
<a name="l00097"></a>00097                                 $mix_Distro = Array($mix_Distro);
<a name="l00098"></a>00098                         }
<a name="l00099"></a>00099                         $this-&gt;<a class="code" href="classc_markings.html#af3a0f6e205b6216f5fe70f14ab8d3c7b">clear_Distro</a>();
<a name="l00100"></a>00100                         <span class="keywordflow">foreach</span> ($mix_Distro as $str_Distro)
<a name="l00101"></a>00101                         {
<a name="l00102"></a>00102                                 $this-&gt;<a class="code" href="classc_markings.html#a486d9e95fd56090bcc35bd813390caf4">add_Distro</a>($str_Distro);
<a name="l00103"></a>00103                         }
<a name="l00104"></a>00104                 }
<a name="l00105"></a>00105 
<a name="l00106"></a><a class="code" href="classc_markings.html#af3a0f6e205b6216f5fe70f14ab8d3c7b">00106</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_markings.html#af3a0f6e205b6216f5fe70f14ab8d3c7b">clear_Distro</a>()
<a name="l00107"></a>00107                 {
<a name="l00108"></a>00108 
<a name="l00109"></a>00109                         $this-&gt;m_arr_Distro = array();
<a name="l00110"></a>00110                 }
<a name="l00111"></a>00111 
<a name="l00112"></a><a class="code" href="classc_markings.html#a486d9e95fd56090bcc35bd813390caf4">00112</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_markings.html#a486d9e95fd56090bcc35bd813390caf4">add_Distro</a>($str_Distro)
<a name="l00113"></a>00113                 {
<a name="l00114"></a>00114 
<a name="l00115"></a>00115                         $this-&gt;m_arr_Distro[] = strtoupper($str_Distro);
<a name="l00116"></a>00116                 }
<a name="l00117"></a>00117 
<a name="l00118"></a><a class="code" href="classc_markings.html#ad1fe5761aeccb98b6e76ce97d4064760">00118</a>                 <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="classc_markings.html#ad1fe5761aeccb98b6e76ce97d4064760">get_OverallEmailBanner</a>()
<a name="l00119"></a>00119                 {
<a name="l00120"></a>00120                         $str_Output = <span class="stringliteral">&quot;Classification: &quot;</span>;
<a name="l00121"></a>00121                         $str_Output .= $this-&gt;m_str_Classification;
<a name="l00122"></a>00122 
<a name="l00123"></a>00123                         <span class="keywordflow">if</span> (<span class="keyword">sizeof</span>($this-&gt;m_arr_SCI) &gt; 0)
<a name="l00124"></a>00124                         {
<a name="l00125"></a>00125                                 $str_Output .= <span class="stringliteral">&quot;/&quot;</span>;
<a name="l00126"></a>00126 
<a name="l00127"></a>00127                                 <span class="keywordflow">foreach</span> ($this-&gt;m_arr_SCI as $str_SCI)
<a name="l00128"></a>00128                                 {
<a name="l00129"></a>00129                                         $str_Output .= <span class="stringliteral">&quot;/&quot;</span> . $str_SCI;
<a name="l00130"></a>00130                                 }
<a name="l00131"></a>00131                         }
<a name="l00132"></a>00132 
<a name="l00133"></a>00133                         <span class="keywordflow">if</span> (<span class="keyword">sizeof</span>($this-&gt;m_arr_Distro) &gt; 0)
<a name="l00134"></a>00134                         {
<a name="l00135"></a>00135                                 $str_Output .= <span class="stringliteral">&quot;/&quot;</span>;
<a name="l00136"></a>00136 
<a name="l00137"></a>00137                                 <span class="keywordflow">foreach</span> ($this-&gt;m_arr_Distro as $str_Distro)
<a name="l00138"></a>00138                                 {
<a name="l00139"></a>00139                                         $str_Output .= <span class="stringliteral">&quot;/&quot;</span> . $str_Distro;
<a name="l00140"></a>00140                                 }
<a name="l00141"></a>00141                         }
<a name="l00142"></a>00142 
<a name="l00143"></a>00143                         <span class="keywordflow">return</span> $str_Output.<span class="stringliteral">&quot;\n&quot;</span>;
<a name="l00144"></a>00144                 }
<a name="l00145"></a>00145         }
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="c_markings_8php.html">cMarkings.php</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Mon Jan 23 2012 13:34:19 for AmpleHarvest by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
